3.50 \(\int \frac {\csc (e+f x)}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx\)

Optimal. Leaf size=398 \[ -\frac {2 b \sqrt {a+b} \sec (e+f x) (c+d \sin (e+f x)) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{a f \sqrt {c+d} (b c-a d)}-\frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{a c f \sqrt {a+b}} \]

[Out]

-2*EllipticPi((a+b)^(1/2)*(c+d*sin(f*x+e))^(1/2)/(c+d)^(1/2)/(a+b*sin(f*x+e))^(1/2),a*(c+d)/(a+b)/c,((a-b)*(c+
d)/(a+b)/(c-d))^(1/2))*sec(f*x+e)*(a+b*sin(f*x+e))*(c+d)^(1/2)*(-(-a*d+b*c)*(1-sin(f*x+e))/(c+d)/(a+b*sin(f*x+
e)))^(1/2)*((-a*d+b*c)*(1+sin(f*x+e))/(c-d)/(a+b*sin(f*x+e)))^(1/2)/a/c/f/(a+b)^(1/2)-2*b*EllipticF((c+d)^(1/2
)*(a+b*sin(f*x+e))^(1/2)/(a+b)^(1/2)/(c+d*sin(f*x+e))^(1/2),((a+b)*(c-d)/(a-b)/(c+d))^(1/2))*sec(f*x+e)*(c+d*s
in(f*x+e))*(a+b)^(1/2)*((-a*d+b*c)*(1-sin(f*x+e))/(a+b)/(c+d*sin(f*x+e)))^(1/2)*(-(-a*d+b*c)*(1+sin(f*x+e))/(a
-b)/(c+d*sin(f*x+e)))^(1/2)/a/(-a*d+b*c)/f/(c+d)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.55, antiderivative size = 398, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {2947, 2818, 2945} \[ -\frac {2 b \sqrt {a+b} \sec (e+f x) (c+d \sin (e+f x)) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{a f \sqrt {c+d} (b c-a d)}-\frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{a c f \sqrt {a+b}} \]

Antiderivative was successfully verified.

[In]

Int[Csc[e + f*x]/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]),x]

[Out]

(-2*Sqrt[c + d]*EllipticPi[(a*(c + d))/((a + b)*c), ArcSin[(Sqrt[a + b]*Sqrt[c + d*Sin[e + f*x]])/(Sqrt[c + d]
*Sqrt[a + b*Sin[e + f*x]])], ((a - b)*(c + d))/((a + b)*(c - d))]*Sec[e + f*x]*Sqrt[-(((b*c - a*d)*(1 - Sin[e
+ f*x]))/((c + d)*(a + b*Sin[e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f*x]))/((c - d)*(a + b*Sin[e + f*x]))
]*(a + b*Sin[e + f*x]))/(a*Sqrt[a + b]*c*f) - (2*b*Sqrt[a + b]*EllipticF[ArcSin[(Sqrt[c + d]*Sqrt[a + b*Sin[e
+ f*x]])/(Sqrt[a + b]*Sqrt[c + d*Sin[e + f*x]])], ((a + b)*(c - d))/((a - b)*(c + d))]*Sec[e + f*x]*Sqrt[((b*c
 - a*d)*(1 - Sin[e + f*x]))/((a + b)*(c + d*Sin[e + f*x]))]*Sqrt[-(((b*c - a*d)*(1 + Sin[e + f*x]))/((a - b)*(
c + d*Sin[e + f*x])))]*(c + d*Sin[e + f*x]))/(a*Sqrt[c + d]*(b*c - a*d)*f)

Rule 2818

Int[1/(Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Si
mp[(2*(c + d*Sin[e + f*x])*Sqrt[((b*c - a*d)*(1 - Sin[e + f*x]))/((a + b)*(c + d*Sin[e + f*x]))]*Sqrt[-(((b*c
- a*d)*(1 + Sin[e + f*x]))/((a - b)*(c + d*Sin[e + f*x])))]*EllipticF[ArcSin[Rt[(c + d)/(a + b), 2]*(Sqrt[a +
b*Sin[e + f*x]]/Sqrt[c + d*Sin[e + f*x]])], ((a + b)*(c - d))/((a - b)*(c + d))])/(f*(b*c - a*d)*Rt[(c + d)/(a
 + b), 2]*Cos[e + f*x]), x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c
^2 - d^2, 0] && PosQ[(c + d)/(a + b)]

Rule 2945

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/(sin[(e_.) + (f_.)*(x_)]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x
_)]]), x_Symbol] :> Simp[(-2*(a + b*Sin[e + f*x])*Sqrt[-(((b*c - a*d)*(1 - Sin[e + f*x]))/((c + d)*(a + b*Sin[
e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f*x]))/((c - d)*(a + b*Sin[e + f*x]))]*EllipticPi[(a*(c + d))/(c*(
a + b)), ArcSin[(Rt[(a + b)/(c + d), 2]*Sqrt[c + d*Sin[e + f*x]])/Sqrt[a + b*Sin[e + f*x]]], ((a - b)*(c + d))
/((a + b)*(c - d))])/(c*f*Rt[(a + b)/(c + d), 2]*Cos[e + f*x]), x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c
- a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]

Rule 2947

Int[1/(sin[(e_.) + (f_.)*(x_)]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*
(x_)]]), x_Symbol] :> -Dist[b/a, Int[1/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]), x], x] + Dist[1/a,
 Int[Sqrt[a + b*Sin[e + f*x]]/(Sin[e + f*x]*Sqrt[c + d*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x]
&& NeQ[b*c - a*d, 0] && (NeQ[a^2 - b^2, 0] || NeQ[c^2 - d^2, 0])

Rubi steps

\begin {align*} \int \frac {\csc (e+f x)}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx &=\frac {\int \frac {\csc (e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{a}-\frac {b \int \frac {1}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{a}\\ &=-\frac {2 \sqrt {c+d} \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{a \sqrt {a+b} c f}-\frac {2 b \sqrt {a+b} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sin (e+f x))}{(a-b) (c+d \sin (e+f x))}} (c+d \sin (e+f x))}{a \sqrt {c+d} (b c-a d) f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 2.33, size = 374, normalized size = 0.94 \[ \frac {2 \sec (e+f x) \left (-\frac {b (a+b) (c+d \sin (e+f x)) \sqrt {\frac {(a d-b c) (\sin (e+f x)-1)}{(a+b) (c+d \sin (e+f x))}} \sqrt {\frac {(a d-b c) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{b c-a d}-\frac {(c+d) (a+b \sin (e+f x)) \sqrt {\frac {(b c-a d) (\sin (e+f x)-1)}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{c}\right )}{a f \sqrt {a+b} \sqrt {c+d}} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[e + f*x]/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]),x]

[Out]

(2*Sec[e + f*x]*(-(((c + d)*EllipticPi[(a*(c + d))/((a + b)*c), ArcSin[(Sqrt[a + b]*Sqrt[c + d*Sin[e + f*x]])/
(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])], ((a - b)*(c + d))/((a + b)*(c - d))]*Sqrt[((b*c - a*d)*(-1 + Sin[e +
f*x]))/((c + d)*(a + b*Sin[e + f*x]))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f*x]))/((c - d)*(a + b*Sin[e + f*x]))]*(
a + b*Sin[e + f*x]))/c) - (b*(a + b)*EllipticF[ArcSin[(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])/(Sqrt[a + b]*Sqrt
[c + d*Sin[e + f*x]])], ((a + b)*(c - d))/((a - b)*(c + d))]*Sqrt[((-(b*c) + a*d)*(-1 + Sin[e + f*x]))/((a + b
)*(c + d*Sin[e + f*x]))]*Sqrt[((-(b*c) + a*d)*(1 + Sin[e + f*x]))/((a - b)*(c + d*Sin[e + f*x]))]*(c + d*Sin[e
 + f*x]))/(b*c - a*d)))/(a*Sqrt[a + b]*Sqrt[c + d]*f)

________________________________________________________________________________________

fricas [F]  time = 1.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{{\left (b c + a d\right )} \cos \left (f x + e\right )^{2} - b c - a d + {\left (b d \cos \left (f x + e\right )^{2} - a c - b d\right )} \sin \left (f x + e\right )}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

integral(-sqrt(b*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)/((b*c + a*d)*cos(f*x + e)^2 - b*c - a*d + (b*d*cos
(f*x + e)^2 - a*c - b*d)*sin(f*x + e)), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate(1/(sqrt(b*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)*sin(f*x + e)), x)

________________________________________________________________________________________

maple [B]  time = 0.87, size = 26871, normalized size = 67.52 \[ \text {output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/sin(f*x+e)/(a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x)

[Out]

result too large to display

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(1/(sqrt(b*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)*sin(f*x + e)), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{\sin \left (e+f\,x\right )\,\sqrt {a+b\,\sin \left (e+f\,x\right )}\,\sqrt {c+d\,\sin \left (e+f\,x\right )}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(sin(e + f*x)*(a + b*sin(e + f*x))^(1/2)*(c + d*sin(e + f*x))^(1/2)),x)

[Out]

int(1/(sin(e + f*x)*(a + b*sin(e + f*x))^(1/2)*(c + d*sin(e + f*x))^(1/2)), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a + b \sin {\left (e + f x \right )}} \sqrt {c + d \sin {\left (e + f x \right )}} \sin {\left (e + f x \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+b*sin(f*x+e))**(1/2)/(c+d*sin(f*x+e))**(1/2),x)

[Out]

Integral(1/(sqrt(a + b*sin(e + f*x))*sqrt(c + d*sin(e + f*x))*sin(e + f*x)), x)

________________________________________________________________________________________